#ifndef DRAG_WIDGET_H
#define DRAG_WIDGET_H

#include <QWidget>
#include <QTextEdit>

class DragWidget : public QTextEdit
{
	Q_OBJECT
public:
	explicit DragWidget(QWidget *parent = nullptr);

protected:
	void dragEnterEvent(QDragEnterEvent *event);
	void dragMoveEvent(QDragMoveEvent *event);
	void dragLeaveEvent(QDragLeaveEvent *event);
	void dropEvent(QDropEvent *event);
};

#endif // DRAG_WIDGET_H
